package cn.yj.cgs.dba.mapper;

import cn.yj.annotation.pagehelper.annotation.StartPage;
import cn.yj.annotation.pagehelper.page.Page;
import cn.yj.cgs.dba.entity.Swiper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @author 永健
 * @since 2021-06-05 11:21
 */
public interface SwiperMapper extends BaseMapper<Swiper> {

    @StartPage
    List<Swiper> pageList(@Param("map") Map<String, Object> map, @Param("page") Page<Swiper> page);

    @Select("select * from tb_swiper where choose=1")
    List<Swiper> listChoose();
}
